package entity;

import java.sql.Timestamp;
import java.util.List;

/**
 * @program: Mybatis201759225309
 * @description: Member实体类
 * @author: Xiaozhuoer
 * @create: 2021-04-12 10:03
 **/

public class Member {
    private int id;
    private String user_name;
    private String password;
    private String email;
    private boolean sex; //0->woman 1->man
    private String mobile;
    private Timestamp register_time;
    private List<MemberAddress> memberAddresses;
    private MemberAddress memberAddress;

    public MemberAddress getMemberAddress() {
        return memberAddress;
    }

    public void setMemberAddress(MemberAddress memberAddress) {
        this.memberAddress = memberAddress;
    }

    @Override
    public String toString() {
        return "Member{" +
                "id=" + id +
                ", user_name='" + user_name + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", sex=" + sex +
                ", mobile='" + mobile + '\'' +
                ", register_time=" + register_time +
                ", memberAddress=" + memberAddress +
                '}';
    }

    public List<MemberAddress> getMemberAddresses() {
        return memberAddresses;
    }

    public void setMemberAddresses(List<MemberAddress> memberAddresses) {
        this.memberAddresses = memberAddresses;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public boolean isSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Timestamp getRegister_time() {
        return register_time;
    }

    public void setRegister_time(Timestamp register_time) {
        this.register_time = register_time;
    }
}
